public class Screen {
    private final ScreenType type;
    private final double size;
    private final double weight;

    public Screen(ScreenType type, double size, double weight) {
        this.type = type;
        this.size = size;
        this.weight = weight;
    }

    public ScreenType getType() {
        return type;
    }

    public double getSize() {
        return size;
    }

    public double getWeight() {
        return weight;
    }

    public String toString() {
        return "Экран " + getType() + " " + getSize() + " дюймов";
    }
}
